#ifndef _WIFI_APP_H_
#define _WIFI_APP_H_

#define SMART_CONFIG_RECV_SSID_TIMEOUT   30000
#define SMART_CONFIG_RECV_GOTIP_TIMEOUT  5000
#define SMART_CONFIG_DELAY_TIMEOUT       5000
#define SMART_CONFIG_ENTIRE_TIMEOUT      (SMART_CONFIG_RECV_SSID_TIMEOUT + SMART_CONFIG_RECV_GOTIP_TIMEOUT + SMART_CONFIG_DELAY_TIMEOUT + 5)

typedef enum
{
	WIFI_CHECK_HARDWARE,
	WIFI_CONNECT_NWK_ING,
	WIFI_CONNECT_MQTT_FAIL,
	WIFI_CONNECT_MQTT_SUCESS,
	WIFI_SMART_CONFIGING,
} WifiConnectState_t;

void WifiNetworkTask(void);
void StartSmartCfgWifi(void);
WifiConnectState_t GetWifiConnectState(void);
#endif
